var express = require('express');
var router = express.Router();
var {aModel}=require('../model/wyj')

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get('/list',async (req,res)=>{
    const data=await aModel.find()
    res.send(data)
})

module.exports = router;
